home *** CD-ROM | disk | FTP | other *** search
/ Clickx 47 / Clickx 47.iso / assets / swf / start.swf / scripts / __Packages / clickx / Application.as
Encoding:
Text File  |  2008-01-01  |  27.2 KB  |  620 lines

  1. var ┬º\x01┬º = 983;
  2. loop0:
  3. while(true)
  4. {
  5.    if(eval("\x01") == 983)
  6.    {
  7.       set("\x01",eval("\x01") + 14);
  8.       ┬º┬ºpush(true);
  9.    }
  10.    else if(eval("\x01") == 37)
  11.    {
  12.       set("\x01",eval("\x01") + 535);
  13.       if(┬º┬ºpop())
  14.       {
  15.          set("\x01",eval("\x01") + 216);
  16.       }
  17.    }
  18.    else if(eval("\x01") == 997)
  19.    {
  20.       set("\x01",eval("\x01") - 548);
  21.       if(┬º┬ºpop())
  22.       {
  23.          set("\x01",eval("\x01") - 170);
  24.       }
  25.    }
  26.    else
  27.    {
  28.       if(eval("\x01") == 258)
  29.       {
  30.          set("\x01",eval("\x01") + 525);
  31.          break;
  32.       }
  33.       if(eval("\x01") == 905)
  34.       {
  35.          set("\x01",eval("\x01") - 868);
  36.          ┬º┬ºpush(true);
  37.       }
  38.       else
  39.       {
  40.          if(eval("\x01") == 50)
  41.          {
  42.             set("\x01",eval("\x01") + 855);
  43.             prevFrame();
  44.             break;
  45.          }
  46.          if(eval("\x01") == 449)
  47.          {
  48.             set("\x01",eval("\x01") - 170);
  49.             loop1:
  50.             while(true)
  51.             {
  52.                set(┬º┬ºpop(),eval("\x01") + 311);
  53.                if(┬º┬ºpop())
  54.                {
  55.                   set("\x01",eval("\x01") + 50);
  56.                }
  57.                while(true)
  58.                {
  59.                   if(eval("\x01") == 692)
  60.                   {
  61.                      set("\x01",eval("\x01") - 626);
  62.                      ┬º┬ºpush(true);
  63.                   }
  64.                   else if(eval("\x01") == 66)
  65.                   {
  66.                      set("\x01",eval("\x01") - 4);
  67.                      if(┬º┬ºpop())
  68.                      {
  69.                         set("\x01",eval("\x01") + 604);
  70.                      }
  71.                   }
  72.                   else if(eval("\x01") == 24)
  73.                   {
  74.                      set("\x01",eval("\x01") + 516);
  75.                      if(┬º┬ºpop())
  76.                      {
  77.                         set("\x01",eval("\x01") + 35);
  78.                      }
  79.                   }
  80.                   else
  81.                   {
  82.                      if(eval("\x01") != 341)
  83.                      {
  84.                         if(eval("\x01") == 62)
  85.                         {
  86.                            set("\x01",eval("\x01") + 604);
  87.                            ┬º┬ºpop()[┬º┬ºpop()] = function(event, handler)
  88.                            {
  89.                               var _loc2_ = ┬º┬ºconstant(15) + event;
  90.                               eval(┬º┬ºconstant(1))[┬º┬ºconstant(3)][┬º┬ºconstant(4)][┬º┬ºconstant(6)](this[_loc2_],event,handler);
  91.                            };
  92.                            _loc1_[┬º┬ºconstant(10)] = undefined;
  93.                            _loc1_[┬º┬ºconstant(20)] = {(┬º┬ºconstant(27)):1,(┬º┬ºconstant(28)):1,(┬º┬ºconstant(29)):1};
  94.                            addr337:
  95.                            ┬º┬ºpush(┬º┬ºconstant(25)(eval(┬º┬ºconstant(1))[┬º┬ºconstant(3)][┬º┬ºconstant(4)][┬º┬ºconstant(5)],null,1));
  96.                         }
  97.                         else
  98.                         {
  99.                            if(eval("\x01") == 534)
  100.                            {
  101.                               set("\x01",eval("\x01") - 196);
  102.                               ┬º┬ºpush(┬º┬ºpop() gt ┬º┬ºpop() >>> typeof (┬º┬ºpop() >>> ┬º┬ºpop()));
  103.                               break loop0;
  104.                            }
  105.                            if(eval("\x01") == 940)
  106.                            {
  107.                               set("\x01",eval("\x01") - 336);
  108.                               ┬º┬ºpush(true);
  109.                               continue;
  110.                            }
  111.                            if(eval("\x01") == 666)
  112.                            {
  113.                               set("\x01",eval("\x01") + 321);
  114.                               ┬º┬ºpush(true);
  115.                               continue;
  116.                            }
  117.                            if(eval("\x01") == 604)
  118.                            {
  119.                               set("\x01",eval("\x01") - 70);
  120.                               if(┬º┬ºpop())
  121.                               {
  122.                                  set("\x01",eval("\x01") - 196);
  123.                               }
  124.                               continue;
  125.                            }
  126.                            if(eval("\x01") == 338)
  127.                            {
  128.                               set("\x01",eval("\x01") + 618);
  129.                               ┬º┬ºpush(true);
  130.                               continue;
  131.                            }
  132.                            if(eval("\x01") == 275)
  133.                            {
  134.                               set("\x01",eval("\x01") + 66);
  135.                               play();
  136.                               break loop0;
  137.                            }
  138.                            if(eval("\x01") == 25)
  139.                            {
  140.                               set("\x01",eval("\x01") + 871);
  141.                               if(┬º┬ºpop())
  142.                               {
  143.                                  set("\x01",eval("\x01") + 44);
  144.                               }
  145.                               continue;
  146.                            }
  147.                            if(eval("\x01") == 890)
  148.                            {
  149.                               set("\x01",eval("\x01") - 479);
  150.                               ┬º┬ºpush(true);
  151.                               continue;
  152.                            }
  153.                            if(eval("\x01") == 896)
  154.                            {
  155.                               break loop1;
  156.                            }
  157.                            if(eval("\x01") == 956)
  158.                            {
  159.                               set("\x01",eval("\x01") - 495);
  160.                               if(┬º┬ºpop())
  161.                               {
  162.                                  set("\x01",eval("\x01") - 98);
  163.                               }
  164.                               continue;
  165.                            }
  166.                            if(eval("\x01") == 987)
  167.                            {
  168.                               set("\x01",eval("\x01") - 712);
  169.                               if(┬º┬ºpop())
  170.                               {
  171.                                  set("\x01",eval("\x01") + 66);
  172.                               }
  173.                               continue;
  174.                            }
  175.                            if(eval("\x01") == 575)
  176.                            {
  177.                               set("\x01",eval("\x01") - 550);
  178.                               ┬º┬ºpush(true);
  179.                               continue;
  180.                            }
  181.                            if(eval("\x01") == 540)
  182.                            {
  183.                               set("\x01",eval("\x01") + 35);
  184.                               break loop0;
  185.                            }
  186.                            if(eval("\x01") == 461)
  187.                            {
  188.                               set("\x01",eval("\x01") - 98);
  189.                               set(┬º┬ºpop(),┬º┬ºpop());
  190.                               set(┬º┬ºpop(),┬º┬ºpop());
  191.                               break loop0;
  192.                            }
  193.                            if(eval("\x01") == 363)
  194.                            {
  195.                               set("\x01",eval("\x01") + 166);
  196.                               ┬º┬ºpush(true);
  197.                               continue;
  198.                            }
  199.                            if(eval("\x01") == 529)
  200.                            {
  201.                               break;
  202.                            }
  203.                            if(eval("\x01") == 411)
  204.                            {
  205.                               set("\x01",eval("\x01") + 245);
  206.                               if(┬º┬ºpop())
  207.                               {
  208.                                  set("\x01",eval("\x01") - 4);
  209.                               }
  210.                               continue;
  211.                            }
  212.                            if(eval("\x01") == 840)
  213.                            {
  214.                               set("\x01",eval("\x01") + 50);
  215.                               ┬º┬ºpush(int(┬º┬ºpop()));
  216.                               break loop0;
  217.                            }
  218.                            if(eval("\x01") == 656)
  219.                            {
  220.                               set("\x01",eval("\x01") - 4);
  221.                               break loop0;
  222.                            }
  223.                            if(eval("\x01") != 652)
  224.                            {
  225.                               break loop0;
  226.                            }
  227.                            set("\x01",eval("\x01") - 54);
  228.                            if(!_global.mx)
  229.                            {
  230.                               _global.mx = new Object();
  231.                            }
  232.                            ┬º┬ºpop();
  233.                            if(!_global.mx.events)
  234.                            {
  235.                               _global.mx.events = new Object();
  236.                            }
  237.                            ┬º┬ºpop();
  238.                            if(!_global.mx.events.EventDispatcher)
  239.                            {
  240.                               var _loc2_ = mx.events.EventDispatcher = function()
  241.                               {
  242.                               }.prototype;
  243.                               mx.events.EventDispatcher = function()
  244.                               {
  245.                               }._removeEventListener = function(queue, event, handler)
  246.                               {
  247.                                  if(queue != undefined)
  248.                                  {
  249.                                     var _loc4_ = queue.length;
  250.                                     var _loc1_ = undefined;
  251.                                     _loc1_ = 0;
  252.                                     while(_loc1_ < _loc4_)
  253.                                     {
  254.                                        var _loc2_ = queue[_loc1_];
  255.                                        if(_loc2_ == handler)
  256.                                        {
  257.                                           queue.splice(_loc1_,1);
  258.                                           return undefined;
  259.                                        }
  260.                                        _loc1_ = _loc1_ + 1;
  261.                                     }
  262.                                  }
  263.                               };
  264.                               mx.events.EventDispatcher = function()
  265.                               {
  266.                               }.initialize = function(object)
  267.                               {
  268.                                  if(mx.events.EventDispatcher._fEventDispatcher == undefined)
  269.                                  {
  270.                                     mx.events.EventDispatcher._fEventDispatcher = new mx.events.EventDispatcher();
  271.                                  }
  272.                                  object.addEventListener = mx.events.EventDispatcher._fEventDispatcher.addEventListener;
  273.                                  object.removeEventListener = mx.events.EventDispatcher._fEventDispatcher.removeEventListener;
  274.                                  object.dispatchEvent = mx.events.EventDispatcher._fEventDispatcher.dispatchEvent;
  275.                                  object.dispatchQueue = mx.events.EventDispatcher._fEventDispatcher.dispatchQueue;
  276.                               };
  277.                               _loc2_.dispatchQueue = function(queueObj, eventObj)
  278.                               {
  279.                                  var _loc7_ = "__q_" + eventObj.type;
  280.                                  var _loc4_ = queueObj[_loc7_];
  281.                                  if(_loc4_ != undefined)
  282.                                  {
  283.                                     var _loc5_ = undefined;
  284.                                     for(_loc5_ in _loc4_)
  285.                                     {
  286.                                        var _loc1_ = _loc4_[_loc5_];
  287.                                        var _loc3_ = typeof _loc1_;
  288.                                        if(_loc3_ == "object" || _loc3_ == "movieclip")
  289.                                        {
  290.                                           if(_loc1_.handleEvent != undefined)
  291.                                           {
  292.                                              _loc1_.handleEvent(eventObj);
  293.                                           }
  294.                                           if(_loc1_[eventObj.type] != undefined)
  295.                                           {
  296.                                              if(mx.events.EventDispatcher.exceptions[eventObj.type] == undefined)
  297.                                              {
  298.                                                 _loc1_[eventObj.type](eventObj);
  299.                                              }
  300.                                           }
  301.                                        }
  302.                                        else
  303.                                        {
  304.                                           _loc1_.apply(queueObj,[eventObj]);
  305.                                        }
  306.                                     }
  307.                                  }
  308.                               };
  309.                               _loc2_.dispatchEvent = function(eventObj)
  310.                               {
  311.                                  if(eventObj.target == undefined)
  312.                                  {
  313.                                     eventObj.target = this;
  314.                                  }
  315.                                  this[eventObj.type + "Handler"](eventObj);
  316.                                  this.dispatchQueue(this,eventObj);
  317.                               };
  318.                               _loc2_.addEventListener = function(event, handler)
  319.                               {
  320.                                  var _loc3_ = "__q_" + event;
  321.                                  if(this[_loc3_] == undefined)
  322.                                  {
  323.                                     this[_loc3_] = new Array();
  324.                                  }
  325.                                  _global.ASSetPropFlags(this,_loc3_,1);
  326.                                  mx.events.EventDispatcher._removeEventListener(this[_loc3_],event,handler);
  327.                                  this[_loc3_].push(handler);
  328.                               };
  329.                               ┬º┬ºgoto(addr337);
  330.                               ┬º┬ºpush(_loc2_);
  331.                               ┬º┬ºpush("removeEventListener");
  332.                            }
  333.                         }
  334.                         ┬º┬ºpop();
  335.                         break loop0;
  336.                      }
  337.                      set("\x01",eval("\x01") - 317);
  338.                      ┬º┬ºpush(true);
  339.                   }
  340.                }
  341.             }
  342.             set("\x01",eval("\x01") + 44);
  343.             break;
  344.          }
  345.          if(eval("\x01") == 279)
  346.          {
  347.             set("\x01",eval("\x01") + 519);
  348.             ┬º┬ºpush(true);
  349.          }
  350.          else if(eval("\x01") == 783)
  351.          {
  352.             set("\x01",eval("\x01") + 1);
  353.             ┬º┬ºpush(true);
  354.          }
  355.          else
  356.          {
  357.             if(eval("\x01") == 572)
  358.             {
  359.                set("\x01",eval("\x01") + 216);
  360.                break;
  361.             }
  362.             if(eval("\x01") == 798)
  363.             {
  364.                set("\x01",eval("\x01") - 748);
  365.                if(┬º┬ºpop())
  366.                {
  367.                   set("\x01",eval("\x01") + 855);
  368.                }
  369.             }
  370.             else if(eval("\x01") == 784)
  371.             {
  372.                set("\x01",eval("\x01") - 249);
  373.                if(┬º┬ºpop())
  374.                {
  375.                   set("\x01",eval("\x01") - 15);
  376.                }
  377.             }
  378.             else
  379.             {
  380.                if(eval("\x01") == 535)
  381.                {
  382.                   set("\x01",eval("\x01") - 15);
  383.                   ┬º┬ºpush(┬º┬ºpop() >>> (┬º┬ºpop() | ┬º┬ºpop()[┬º┬ºpop() >>> ┬º┬ºpop()]));
  384.                   break;
  385.                }
  386.                if(eval("\x01") == 788)
  387.                {
  388.                   set("\x01",eval("\x01") - 24);
  389.                   ┬º┬ºpush(true);
  390.                }
  391.                else
  392.                {
  393.                   if(eval("\x01") == 520)
  394.                   {
  395.                      set("\x01",eval("\x01") - 277);
  396.                      if(!_global.clickx)
  397.                      {
  398.                         _global.clickx = new Object();
  399.                      }
  400.                      ┬º┬ºpop();
  401.                      if(!_global.clickx.Application)
  402.                      {
  403.                         clickx.Application extends MovieClip;
  404.                         _loc2_ = clickx.Application = function()
  405.                         {
  406.                            super();
  407.                         }.prototype;
  408.                         _loc2_.fillGroupList = function()
  409.                         {
  410.                            this.groups_mc.renderList(clickx.data.DataProvider.getInstance().getGroups());
  411.                         };
  412.                         _loc2_.startApplication = function()
  413.                         {
  414.                            this.gotoAndPlay(11);
  415.                         };
  416.                         _loc2_.showStartMessage = function()
  417.                         {
  418.                            this.introMessage_mc.text_txt.htmlText = clickx.data.DataProvider.getInstance().getIntroMessage();
  419.                         };
  420.                         _loc2_.shutDown = function()
  421.                         {
  422.                            this.shutDown_mc._visible = false;
  423.                            this.gotoAndPlay(68);
  424.                         };
  425.                         _loc2_.backToHome = function()
  426.                         {
  427.                            this.banner_mc.stopSlideShow();
  428.                            this.gotoAndStop(30);
  429.                            this.renderIntroText();
  430.                            this.shutDown_mc.onPress = mx.utils.Delegate.create(this,this.goToEndScreen1);
  431.                         };
  432.                         _loc2_.openAdvertisingLink = function()
  433.                         {
  434.                            clickx.shell.Shell.getInstance().launchURL(clickx.data.DataProvider.getInstance().getAdvertisingLink());
  435.                         };
  436.                         _loc2_.loadAdvertising = function()
  437.                         {
  438.                            this.advertising_mc.imageHolder_mc.createEmptyMovieClip("container_mc",1);
  439.                            if(clickx.util.PlatformUtil.getPlatform() != "mac")
  440.                            {
  441.                               this.advertising_mc.imageHolder_mc.container_mc.loadMovie(clickx.Application.getAppPath() + clickx.data.DataProvider.getInstance().getAdvertising());
  442.                            }
  443.                            else
  444.                            {
  445.                               this.advertising_mc.imageHolder_mc.container_mc.loadMovie(clickx.data.DataProvider.getInstance().getAdvertising());
  446.                            }
  447.                            if(clickx.data.DataProvider.getInstance().advertisingIsLink())
  448.                            {
  449.                               this.advertising_mc.imageHolder_mc.onPress = mx.utils.Delegate.create(this,this.openAdvertisingLink);
  450.                            }
  451.                         };
  452.                         _loc2_.goToEndScreen2 = function()
  453.                         {
  454.                            this.gotoAndPlay(106);
  455.                         };
  456.                         _loc2_.killApplication = function()
  457.                         {
  458.                            clickx.shell.Shell.getInstance().shutDown();
  459.                            this.gotoAndStop(121);
  460.                         };
  461.                         _loc2_.goToEndScreen1 = function()
  462.                         {
  463.                            this.shutDown_mc._visible = false;
  464.                            this.gotoAndPlay(104);
  465.                         };
  466.                         _loc2_.renderSlogan = function()
  467.                         {
  468.                            this.slogan_mc.slogan_txt.text = clickx.data.DataProvider.getInstance().getSlogan();
  469.                         };
  470.                         clickx.Application = function()
  471.                         {
  472.                            super();
  473.                         }.getAppPath = function(realPath)
  474.                         {
  475.                            var _loc1_ = _level0.mdm.Application.path;
  476.                            if(clickx.util.PlatformUtil.getPlatform() == "mac")
  477.                            {
  478.                               if(!realPath)
  479.                               {
  480.                                  _loc1_ = _loc1_.split(":").join("/");
  481.                               }
  482.                            }
  483.                            if(_loc1_ == undefined)
  484.                            {
  485.                               _loc1_ = "";
  486.                            }
  487.                            return _loc1_;
  488.                         };
  489.                         _loc2_.initIntroButtons = function()
  490.                         {
  491.                            this.shutDown_mc.onPress = mx.utils.Delegate.create(this,this.goToEndScreen1);
  492.                            clickx.util.ButtonUtil.makeFrame_R_O_Effect(this.shutDown_mc,5);
  493.                            this.start_mc.onPress = mx.utils.Delegate.create(this,this.goContentScreen);
  494.                            clickx.util.ButtonUtil.makeFrame_R_O_Effect(this.start_mc,5);
  495.                         };
  496.                         _loc2_.goContentScreen = function()
  497.                         {
  498.                            this.introScreen_mc.mask_mc.onEnterFrame = function()
  499.                            {
  500.                               this._alpha += 20;
  501.                               if(this._alpha >= 100)
  502.                               {
  503.                                  delete this.onEnterFrame;
  504.                               }
  505.                            };
  506.                            this.gotoAndPlay(31);
  507.                         };
  508.                         _loc2_.loadData = function()
  509.                         {
  510.                            if(clickx.util.PlatformUtil.getPlatform() == "pc")
  511.                            {
  512.                               clickx.data.DataProvider.getInstance().loadData(clickx.Application.getAppPath() + clickx.Application.DATA_PC_LOC);
  513.                            }
  514.                            else
  515.                            {
  516.                               clickx.data.DataProvider.getInstance().loadData(clickx.Application.DATA_MAC_LOC);
  517.                            }
  518.                         };
  519.                         _loc2_.selectGroup = function(val)
  520.                         {
  521.                            this.currentGroup = val;
  522.                            this.softwareList_mc.loadGroup(val);
  523.                         };
  524.                         _loc2_.selectSoftwareTitle = function(val)
  525.                         {
  526.                            this.softwareDetail_mc.loadSoftwareInfo(this.currentGroup,val);
  527.                         };
  528.                         _loc2_.hideFirstPanelContent = function()
  529.                         {
  530.                            this.groups_mc.hideContent();
  531.                         };
  532.                         _loc2_.renderIntroText = function()
  533.                         {
  534.                            this.cdTitle_big_mc.title_txt.text = clickx.data.DataProvider.getInstance().getCDTitle();
  535.                            this.cdTitle_small_mc.title_txt.text = clickx.data.DataProvider.getInstance().getCDTitle();
  536.                            this.introScreen_mc.introTitle_txt.text = clickx.data.DataProvider.getInstance().getIntroTitle();
  537.                            this.introScreen_mc.introText_txt.htmlText = clickx.data.DataProvider.getInstance().getIntroText();
  538.                            this.introScreen_mc.mask_mc.onEnterFrame = function()
  539.                            {
  540.                               this._alpha -= 20;
  541.                               if(this._alpha <= 0)
  542.                               {
  543.                                  delete this.onEnterFrame;
  544.                               }
  545.                            };
  546.                         };
  547.                         _loc2_.startBannerRotation = function()
  548.                         {
  549.                            this.banner_mc.setImages(clickx.data.DataProvider.getInstance().getBanners());
  550.                            this.banner_mc.startSlideShow();
  551.                         };
  552.                         _loc2_.activateBackToHomeButton = function()
  553.                         {
  554.                            clickx.util.ButtonUtil.makeFrame_R_O_Effect(this.backToHome_mc,5);
  555.                            this.backToHome_mc.onPress = mx.utils.Delegate.create(this,this.backToHome);
  556.                         };
  557.                         _loc2_.initEndScreen1 = function()
  558.                         {
  559.                            clickx.util.ButtonUtil.makeFrame_R_O_Effect(this.nextButton_mc,5);
  560.                            this.nextButton_mc.onPress = mx.utils.Delegate.create(this,this.goToEndScreen2);
  561.                         };
  562.                         _loc2_.initEndScreen2 = function()
  563.                         {
  564.                            clickx.util.ButtonUtil.makeFrame_R_O_Effect(this.nextButton_mc,5);
  565.                            this.nextButton_mc.onPress = mx.utils.Delegate.create(this,this.killApplication);
  566.                         };
  567.                         _loc2_.shutDownWithAnimation = function()
  568.                         {
  569.                            this.shutDown_mc.onPress = mx.utils.Delegate.create(this,this.shutDown);
  570.                         };
  571.                         _loc2_.onLoad = function()
  572.                         {
  573.                            if(clickx.data.DataProvider.getInstance().isReady())
  574.                            {
  575.                               this.startApplication();
  576.                            }
  577.                            else
  578.                            {
  579.                               clickx.data.DataProvider.getInstance().addEventListener("onDataProviderReady",this);
  580.                            }
  581.                            this.border_mc._visible = false;
  582.                         };
  583.                         _loc2_.onDataProviderReady = function(eventObject)
  584.                         {
  585.                            this.startApplication();
  586.                         };
  587.                         clickx.Application = function()
  588.                         {
  589.                            super();
  590.                         }.END_SCREEN2_DELAY = 7;
  591.                         clickx.Application = function()
  592.                         {
  593.                            super();
  594.                         }.DATA_PC_LOC = "assets/xml/pc.xml";
  595.                         clickx.Application = function()
  596.                         {
  597.                            super();
  598.                         }.DATA_MAC_LOC = "assets/xml/mac.xml";
  599.                         _loc2_.currentGroup = "";
  600.                         ┬º┬ºpush(ASSetPropFlags(clickx.Application.prototype,null,1));
  601.                      }
  602.                      ┬º┬ºpop();
  603.                      break;
  604.                   }
  605.                   if(eval("\x01") != 764)
  606.                   {
  607.                      break;
  608.                   }
  609.                   set("\x01",eval("\x01") - 506);
  610.                   if(┬º┬ºpop())
  611.                   {
  612.                      set("\x01",eval("\x01") + 525);
  613.                   }
  614.                }
  615.             }
  616.          }
  617.       }
  618.    }
  619. }
  620.